<template>
  <ConversationList />
</template>

<script lang="ts" setup>
import ConversationList from './conversation-list/index.vue'
import { trackInit } from '../../utils/reporter'
import { onShow } from '@dcloudio/uni-app'
import { customNavigateTo } from '../../utils/customNavigate'
import { setContactTabUnread, setTabUnread } from '../../utils/msg'

trackInit('ConversationUIKit')

onShow(async() => {
  // 重置选中会话
  // @ts-ignore
  // uni.$UIKitStore?.uiStore.selectSession('')
  setTabUnread()
  setContactTabUnread()
  await uni.$UIKitStore.uiStore.selectSession('team-14980926921')
  customNavigateTo({
  	url: '/pages/Chat/index',
  })
  
})
</script>

<style lang="scss">
@import '../styles/common.scss';

page {
  height: 100vh;
  overflow: hidden;
}
</style>
